import request from '../../utils/request'

export function signIn(params: object){
  return request({
    url: '/user/login',
    method: 'post',
    data:params
  })
}

export function getEmailIdentityCode(params: object){
  return request({
    url: '/identityCode/getEmailIdentityCode',
    method: 'get',
    params: params
  })
}

export function register(params: object){
  return request({
    url: '/user/register',
    method: 'post',
    data: params
  })
}


// 学号密码登录

export function loginByStudentNumber(params: object) {
  return request({
    url: '/user/loginByStudentNumber',
    method: 'post',
    data: params
  })
}


// 获取用户信息
export function selectUserInfoByNumber(studentNumber: string) {
  return request({
    url: '/user/selectUserInfoByNumber/'+studentNumber,
    method: 'get'
  })
}